.class public Lroboguice/inject/SharedPreferencesProvider;
.super Ljava/lang/Object;
.source "SharedPreferencesProvider.java"

# interfaces
.implements Lcom/google/inject/Provider;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lcom/google/inject/Provider",
        "<",
        "Landroid/content/SharedPreferences;",
        ">;"
    }
.end annotation


# instance fields
.field protected a:Ljava/lang/String;

.field protected b:Lcom/google/inject/Provider;
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation

    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/google/inject/Provider",
            "<",
            "Landroid/content/Context;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 36
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 37
    const-string v0, "default"

    iput-object v0, p0, Lroboguice/inject/SharedPreferencesProvider;->a:Ljava/lang/String;

    .line 38
    return-void
.end method

.method public constructor <init>(Lroboguice/inject/SharedPreferencesProvider$PreferencesNameHolder;)V
    .locals 1
    .parameter
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation

    .prologue
    .line 41
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 42
    iget-object v0, p1, Lroboguice/inject/SharedPreferencesProvider$PreferencesNameHolder;->a:Ljava/lang/String;

    iput-object v0, p0, Lroboguice/inject/SharedPreferencesProvider;->a:Ljava/lang/String;

    .line 43
    return-void
.end method


# virtual methods
.method public a()Landroid/content/SharedPreferences;
    .locals 3

    .prologue
    .line 50
    iget-object v0, p0, Lroboguice/inject/SharedPreferencesProvider;->b:Lcom/google/inject/Provider;

    invoke-interface {v0}, Lcom/google/inject/Provider;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/content/Context;

    iget-object v1, p0, Lroboguice/inject/SharedPreferencesProvider;->a:Ljava/lang/String;

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v0

    return-object v0
.end method

.method public bridge synthetic get()Ljava/lang/Object;
    .locals 1

    .prologue
    .line 29
    invoke-virtual {p0}, Lroboguice/inject/SharedPreferencesProvider;->a()Landroid/content/SharedPreferences;

    move-result-object v0

    return-object v0
.end method
